Ext.define('StaffServer.view.sysUser.SysPasswordForm', {
	extend : "Ext.form.Panel",
	alias : 'widget.sysPasswordForm',

	// 基础属性
    labelAlign: 'right',
    frame: true,
    defaultType: 'textfield',
    bodyStyle : 'padding: 5px 5px 5px 15px',
    border: false,
    buttonAlign: 'center',
    defaults: {
        selectOnFocus: true,
        msgTarget: 'side'
    },
    
    items: [{
        fieldLabel: '用户ID',
        name: 'userId',
        hidden: true
    }, 
    	{
        fieldLabel: '用户名称',
        name: 'userName'
       
    }, 
    		
    			{
        fieldLabel: '新密码',
        name: 'password',
        inputType: 'password',
        allowBlank: false
    }, {
        fieldLabel: '确认密码',
        name: 'againPassword',
        vtype:'password',
        tocompare:'sysPasswordForm field[name="password"]',
        inputType: 'password',
        allowBlank: false
    } ],
    
	initComponent : function() {
	    this.dockedItems = [ {
	    	xtype: 'statusbar',
	    	dock : 'bottom'
	    }];
		this.callParent(arguments);
	}

});